package com.rayson.yututu.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rayson.yututu.model.entity.SpaceUser;
import com.rayson.yututu.model.req.IdRequest;
import com.rayson.yututu.model.req.spaceUser.SpaceUserAddReq;
import com.rayson.yututu.model.req.spaceUser.SpaceUserEditReq;
import com.rayson.yututu.model.req.spaceUser.SpaceUserQueryReq;
import com.rayson.yututu.model.vo.spaceUser.SpaceUserVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author wulei
 * @description 针对表【space_user(空间成员表)】的数据库操作Service
 * @createDate 2025-01-18 20:04:02
 */
public interface SpaceUserService extends IService<SpaceUser> {

    String addSpaceUser(SpaceUserAddReq spaceUserAddReq);

    SpaceUserVO getSpaceUserVO(SpaceUser spaceUser, HttpServletRequest request);

    List<SpaceUserVO> getSpaceUserVOList(List<SpaceUser> spaceUserList);

    QueryWrapper<SpaceUser> getQueryWrapper(SpaceUserQueryReq spaceUserQueryReq);

    Boolean deleteSpaceUser(IdRequest idRequest);

    void editSpaceUser(SpaceUserEditReq spaceUserEditReq);

    void validSpaceUser(SpaceUser spaceUser, boolean add);

}
